package componentes;

import java.awt.Color;
import java.awt.Font;

import scenes.Nivel;

import com.uqbar.vainilla.appearances.Label;

public class Printer{
	
	private Texto gameOver;
	private Texto win;
	private Font font;
	private Nivel nivel;
	private double posX = 120;
	private double posY = 200;
	
	public Printer(Nivel nivel) {
		this.nivel = nivel;
		this.font = new Font("Serif", Font.ITALIC, 50);

		this.gameOver = new Texto(new Label(this.font, Color.RED, "Game Over"), posX, posY);
		this.win = new Texto(new Label(this.font, Color.GREEN, "WIN"), posX, posY);
		this.initialize();
	}
	
	private void initialize() {
		this.nivel.addText(this.win);
		this.nivel.addText(this.gameOver);
		
	}

	public Texto ganaron(){
		return this.win;
	}
	
	public Texto perdieron(){
		return this.gameOver;
	}

}
